<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>管理员主页</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background-color: #f4f4f4;
        }
        .admin-panel {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        .button {
            padding: 10px 20px;
            margin: 5px;
            font-size: 16px;
            border: none;
            border-radius: 5px;
            color: white;
            background-color: #007BFF;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        .button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>

<div class="admin-panel">
    <h1>管理员控制面板</h1>
    <button class="button" onclick="goToBooksList();">图书管理</button>
    <button class="button" onclick="goToUserManagement();">用户管理</button>
    <button class="button" onclick="goToLoanStatus();">查看借阅情况</button>
</div>

<script>
    // JavaScript函数，用于跳转到图书管理页面
    function goToBooksList() {
        window.location.href = '/bookslist';
    }

    // JavaScript函数，用于跳转到用户管理页面
    function goToUserManagement() {
        window.location.href = '/usermanagement';
    }

    // JavaScript函数，用于跳转到查看借阅情况页面
    function goToLoanStatus() {
        window.location.href = '/loanstatus';
    }
</script>

</body>
</html>